Don't recursively set bg none on the parent when e.g. moving children
authorAlexander Larsson <alexl@redhat.com>
Tue, 27 Jan 2009 15:43:03 +0000 (16:43 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:28 +0000 (10:15 +0200)
commitd9fcda1072bd6e38cd785014cceba2865cbbd1c4
treeae384f8f48e37766d41625c3659839d83b6b6b1c
parentde2d5f299d0fa6dc2c511fd95e9454c0ce144c9c
Don't recursively set bg none on the parent when e.g. moving children

To avoid drawing the window background of other windows in the area
where the window was we set the bg to none recursively. However, this
is quite costly it the moved window has many siblings. Furthermore, it
is uncommon that siblings overlap, so this cost has little gain.

So, we only set bg None on the parent, which means that there will
be some more flicker in the uncommon case of overlapping siblings.
gdk/x11/gdkgeometry-x11.c
gdk/x11/gdkwindow-x11.c
gdk/x11/gdkwindow-x11.h